package br.edu.unipampa.jogotabuleiroroma;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import br.edu.unipampa.jogotabuleiroroma.util.MensagemUtil;

public class SplashScreen extends Activity implements Runnable {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splashscreen);
		MensagemUtil
				.addMsg(SplashScreen.this, "Aguarde . abrindo o sistema ..");
		Handler handler = new Handler();
		handler.postDelayed(this, 3000);
	}

	@Override
	public void run() {
		startActivity(new Intent(this, DashBoardActivity.class));
		finish();
	}

}